Different Ways of Creating Objects in JavaScript